coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: media
  displayName: Media
  pluralName: medias
  displayPluralName: Media
  dataSource: main
  tableName: core_media
  titleAttribute: filename
  description: Media
  icon: FileImageOutlined
  core: true
  performDdl: false
  implementation: ru.scisolutions.scicmscore.engine.hook.impl.MediaItemImpl
spec:
  attributes:
    filename:
      type: string
      columnName: filename
      displayName: Filename
      description: Filename
      required: true
      readOnly: true
      length: 100
    label:
      type: string
      columnName: label
      displayName: Label
      description: Label
      length: 50
    description:
      type: string
      columnName: description
      displayName: Description
      description: Description
      length: 250
      colWidth: 200
    fileSize:
      type: int
      columnName: file_size
      displayName: File Size (B)
      description: File Size (B)
      required: true
      readOnly: true
      minRange: 0
      colWidth: 160
    mimeType:
      type: string
      columnName: mimetype
      displayName: MIME Type
      description: MIME Type
      required: true
      readOnly: true
      length: 50
    path:
      type: string
      columnName: path
      displayName: Path
      description: Path
      required: true
      readOnly: true
      length: 500
      colWidth: 300
    checksum:
      type: string
      columnName: checksum
      displayName: Checksum
      description: Checksum
      required: true
      readOnly: true
      length: 50
      colWidth: 270
